var e = getApp();

Page({
    data: {
        isLoaded: !1,
        isScroll: !1,
        systemInfo: e.data.systemInfo
    },
    onLoad: function(e) {
        var t = null, o = "#000", a = "", n = "white";
        e.image && (t = decodeURIComponent(e.image)), e.bgColor && (o = decodeURIComponent(e.bgColor)), 
        e.title && (a = decodeURIComponent(e.title)), e.theme && (n = decodeURIComponent(e.theme)), 
        this.setData({
            image: t,
            bgColor: o,
            title: a,
            theme: n
        });
    },
    imageOnLoaded: function(t) {
        var o = e.data.systemInfo.screenWidth / e.data.systemInfo.screenHeight, a = t.detail.width / t.detail.height;
        this.setData({
            isLoaded: !0,
            isScroll: a < o
        });
    },
    onClose: function() {
        e.returnUI();
    }
});